import requests
import parsel

for page in range(0, 10):
    page = page*20
    url = f'https://movie.douban.com/j/chart/top_list?type=11&interval_id=100%3A90&action=&start={page}&limit=20'
    headers = {
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36'
    }
    resp = requests.get(url=url, headers=headers)
    # print(resp.json())
    data_json = resp.json()
    for item in data_json:
        title = item['title']
        print(title)

    print("="*30)